//package com.ChessGame.gameRules;
package com.si.entite;

public  abstract class Piece {
   
        
    public String getCouleur() {
        return couleur;
    }

   String couleur;
    
    public abstract boolean validerDep(Position posDepart, Position posFinal);
    public abstract String toString();
    public abstract String getPathImage(int i);
    public boolean validerEchec(Position posFinal)
    {
       if(((posFinal.getX()<8)&&(posFinal.getY()<8))&&((posFinal.getX()>=0)&&(posFinal.getY()>=0))){
           return true;
       }return false;
    }
   
}
